<?php
// +----------------------------------------------------------------------
// | CatchAdmin [Just Like ～ ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
// +----------------------------------------------------------------------
// | Author: JaguarJack [ njphper@gmail.com ]
// +----------------------------------------------------------------------

// you should use `$router`
/* @var think\Route $router */

$router->group(function () use ($router) {
    $router->get('get_rc_class', '\catchAdmin\apidoctor\controller\Rc@get_rc_class');
    $router->get('get_rc_case_list', '\catchAdmin\apidoctor\controller\Rc@get_rc_case_list');
    $router->post('rc/create_doctor_case_class', '\catchAdmin\apidoctor\controller\Rc@create_doctor_case_class');
    $router->post('rc/batch_rc_grouping', '\catchAdmin\apidoctor\controller\Rc@batch_rc_grouping');
    $router->get('get_ysd_education_tree', '\catchAdmin\apidoctor\controller\Rc@get_ysd_education_tree');
    $router->post('rc/push_ysd_education', '\catchAdmin\apidoctor\controller\Rc@push_ysd_education');
    $router->post('rc/create_ysd_follow', '\catchAdmin\apidoctor\controller\Rc@create_ysd_follow');
    $router->get('like_case_patient', '\catchAdmin\apidoctor\controller\Rc@like_case_patient');
    $router->get('get_latest_news', '\catchAdmin\apidoctor\controller\Sfgl@get_latest_news');

    $router->get('get_patient_manage', '\catchAdmin\apidoctor\controller\Patient@get_patient_manage');
    $router->get('get_patient_jkda', '\catchAdmin\apidoctor\controller\Patient@get_patient_jkda');
    $router->get('get_patient_ynyl', '\catchAdmin\apidoctor\controller\Patient@get_patient_ynyl');
    $router->get('get_patient_family', '\catchAdmin\apidoctor\controller\Patient@get_patient_family');
    $router->get('get_hzd_patient_top', '\catchAdmin\apidoctor\controller\Patient@get_hzd_patient_top');

    $router->get('get_sfgl_sfbd', '\catchAdmin\apidoctor\controller\Sfgl@get_sfgl_sfbd');
    $router->get('get_sfgl_jkxj', '\catchAdmin\apidoctor\controller\Sfgl@get_sfgl_jkxj');
    $router->get('get_ysd_message_list', '\catchAdmin\apidoctor\controller\Sfgl@get_ysd_message_list');
    $router->get('get_yhd_my', '\catchAdmin\apidoctor\controller\Doctor@get_yhd_my');
    $router->get('GetMyServices', '\catchAdmin\apidoctor\controller\Doctor@getMyServicesSigned');
    $router->post('Suggestion', '\catchAdmin\apidoctor\controller\Doctor@doctorSuggestion');
    $router->any('GetSuggestion', '\catchAdmin\apidoctor\controller\Doctor@getSuggestion');
    $router->post('circle/establish', '\catchAdmin\apidoctor\controller\Circle@establish');
    $router->get('group_chat_list', '\catchAdmin\apidoctor\controller\Circle@group_chat_list');
    $router->get('group_chat_info', '\catchAdmin\apidoctor\controller\Circle@group_chat_info');
    $router->post('circle/modify_group_chat_info', '\catchAdmin\apidoctor\controller\Circle@modify_group_chat_info');
    $router->post('circle/add_group_chat_patient', '\catchAdmin\apidoctor\controller\Circle@add_group_chat_patient');
    $router->post('circle/dissolution', '\catchAdmin\apidoctor\controller\Circle@dissolution');
    $router->any('part_list', '\catchAdmin\apidoctor\controller\Circle@part_list');
    $router->get('group_chat_head', '\catchAdmin\apidoctor\controller\Circle@group_chat_head');
    $router->post('circle/release', '\catchAdmin\apidoctor\controller\Circle@release');
    $router->post('circle/uploadMaterial', '\catchAdmin\apidoctor\controller\Circle@uploadMaterial');
    $router->any('circle/GetReleaseList', '\catchAdmin\apidoctor\controller\Circle@getReleaseList');
    $router->get('circle/GetReleaseDetail/:contentId', '\catchAdmin\apidoctor\controller\Circle@getReleaseDetail');
    $router->delete('circle/Delete/:id', '\catchAdmin\apidoctor\controller\Circle@deleteArticle');
    $router->post('circle/comment', '\catchAdmin\apidoctor\controller\Circle@comment');
    $router->any('joined_members', '\catchAdmin\apidoctor\controller\Circle@joined_members');
    $router->post('circle/remove_members', '\catchAdmin\apidoctor\controller\Circle@remove_members');
    $router->any('GetUnReadCount', '\catchAdmin\apidoctor\controller\Circle@getUnReadCount');
    $router->any('GetUnReadList', '\catchAdmin\apidoctor\controller\Circle@getUnReadList');
    $router->delete('DelComment/:id', '\catchAdmin\apidoctor\controller\Circle@delComment');

    //获取医生端未读消息数
    $router->post('ysdUnreadMessageNum', '\catchAdmin\apidoctor\controller\Sfgl@getYsdUnreadMessageNum');
    //清除医生端未读消息
    $router->post('cleanYsdUnreadMessage', '\catchAdmin\apidoctor\controller\Sfgl@cleanYsdUnreadMessage');
    //签约的随访包
    $router->any('getYsdSignedServicePack', '\catchAdmin\apidoctor\controller\Mbqy@getYsdSignedServicePack');
    //签约的随访包详情
    $router->any('getYsdSignedServicePackDetails', '\catchAdmin\apidoctor\controller\Mbqy@getYsdSignedServicePackDetails');
    //随访任务-门诊/病区随访
    $router->any('getYsdFollowTask', '\catchAdmin\apidoctor\controller\Sfgl@getYsdFollowTask');
    //随访任务-门诊/病区随访-详情信息
    $router->any('getYsdFollowTaskDetailsHead', '\catchAdmin\apidoctor\controller\Sfgl@getYsdFollowTaskDetailsHead');
    //随访任务-门诊/病区随访-详情
    $router->any('getYsdFollowTaskDetails', '\catchAdmin\apidoctor\controller\Sfgl@getYsdFollowTaskDetails');
    //阅读消息
    $router->post('readYsdMessage', '\catchAdmin\apidoctor\controller\Sfgl@readYsdMessage');
    //推送随访问卷（短信）
    $router->post('followYsdPush', '\catchAdmin\apidoctor\controller\Sfgl@followYsdPush');
    //宣教计划
    $router->any('edYsdPlanList', '\catchAdmin\apidoctor\controller\Sfgl@edYsdPlanList');
    //宣教计划-详情
    $router->any('edYsdPlanDetails', '\catchAdmin\apidoctor\controller\Sfgl@edYsdPlanDetails');
})->middleware([\app\middleware\DoctorCheck::class]);

$router->group(function () use ($router) {
    //$router->post('circle/remove_members', '\catchAdmin\apidoctor\controller\Circle@remove_members');
    //$router->any('joined_members', '\catchAdmin\apidoctor\controller\Circle@joined_members');
    //$router->any('part_list', '\catchAdmin\apidoctor\controller\Circle@part_list');
    $router->get('get_pj', '\catchAdmin\apidoctor\controller\Doctor@get_pj');
    //$router->get('get_ysd_message_list', '\catchAdmin\apidoctor\controller\Sfgl@get_ysd_message_list');
    //$router->get('get_hzd_patient_top', '\catchAdmin\apidoctor\controller\Patient@get_hzd_patient_top');
    //$router->get('get_patient_manage', '\catchAdmin\apidoctor\controller\Patient@get_patient_manage');
    //$router->get('like_case_patient', '\catchAdmin\apidoctor\controller\Rc@like_case_patient');
});

